<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
</head>
<body>
<div id="content">
    <div id="box">
        <div class="title">Login</div>
        <div class="input">
            <form action="#" th:action="@{/login}" method="post">
                username:<input type="text" name="username">
                <br/>
                password:<input type="text" name="password">
                <br/>
            <input type="radio" name="role" value="1">用户
            <input type="radio" name="role" value="0">管理员
                <input type="submit" value="登录">
            <p th:text="${error}"></p>
            </form>
        </div>
    </div>
</div>
</body>
</html>